package com.hk.jmm.presenter;

import android.util.Log;

import androidx.lifecycle.Lifecycle;

import com.hk.jmm.app.MainActivity;
import com.hk.jmm.app.fragment.AiFragment;
import com.hk.jmm.model.AiModel;
import com.hk.jmm.model.MainModel;
import com.skyz.base.mvp.BasePresenter;

public class AiPresenter extends BasePresenter<AiModel, AiFragment> {

    public AiPresenter(AiFragment view, Lifecycle lifecycle) {
        super(view, lifecycle);
    }

    @Override
    protected AiModel initMvpModel() {
        return new AiModel();
    }



    public void log(String msg){
        Log.v(TAG, msg);
        if(getMvpView().logTv==null){
            return;
        }
        getMvpView().logTv.append(msg+"\n");
    }



}
